package com.mushiengine.core {
import com.mushiengine.test.AnotherBeanLoaderDef;
import com.mushiengine.test.objects.ObjectA;

import flexunit.framework.TestCase;

import nl.demonsters.debugger.MonsterDebugger;

public class AnotherBeanTest extends TestCase{

    public function AnotherBeanTest() {
        super();
        MonsterDebugger.trace(this, "testCase started");
        Diggbe.loadBeanDefinition(new AnotherBeanLoaderDef());

    }


    override public function setUp():void {
        super.setUp();
    }



    public function testShouldGetObjectB():void{
        assertNotNull(Diggbe.getBean("objb"));
    }

    public function testShouldGetObjectBFromA():void{
       var obja:ObjectA = Diggbe.getBean("obja");
        assertNotNull(obja.objectB);
        assertEquals("I am Obj B",obja.objectB.val);

    }


}
}